/*
 * FileReader.h

 *
 *      Author: carlos
 */

#ifndef FILEREADER_H_
#define FILEREADER_H_

#include <iostream>
#include <fstream>
#include <stdio.h>
#include <string.h>
#include "FileWritter.h"

/**
 * Lee de un archivo
 */
using namespace std;
class FileReader {
private:
	string path;
	fstream  archivo;
	bool compressMode;
	bool buffered;
	unsigned int bufeerSize;
	unsigned char mybuffer;
public:
	FileReader(string path,bool compressMode);
	bool hasNext();
	char readByte();
	int readCompressedCode(int code,unsigned int tableSize);
	virtual ~FileReader();
};

#endif /* FILEREADER_H_ */
